lelandshade

[I = ] lelandshade(G::GMTgrid; detail=1.0, contrast=2.0, intensity=false, zfactor=3, transparency=0.6,
                   show=false, color=false, opts=String[], cmap="", kw...)

Compute a grayscale or color shaded illumination image using the thechnique developed by Leland Brown’s “texture shading”

Returns a GMTimage object (8 or 16 bits depending on the intensity option) if show == false, or nothing otherwise.

Examples

To make a texture shaded from a SRTM1 arc sec grid that will be downloaded from the GMT server and uses the defaults indicated above, do (it may take a little while):

using GMT
lelandshade(gmtread("@earth_relief_01s", region=(-114,-113,35,36)), color=true, colorbar=true, show=true)

See Also

[gdaldem], makecpt, grd2cpt,